package com.batsoft.trade.core;

import com.batsoft.trade.disruptor.opp.OppDataEventQueueHelper;
import com.batsoft.trade.util.JedisUtil;
import com.batsoft.trade.util.TradeSerialize;

/**
 * @author <a href="mailto:hellohesir@gmail.com">Mr_He</a>
 * 2019/10/26 21:38
 */
public abstract class BaseOrder {

    protected OppDataEventQueueHelper oppDataEventQueueHelper;

    protected JedisUtil jedisUtil;

    protected TradeSerialize serialize;

    public BaseOrder(JedisUtil jedisUtil, TradeSerialize serialize) {
        this.jedisUtil = jedisUtil;
        this.serialize = serialize;

        oppDataEventQueueHelper = new OppDataEventQueueHelper(jedisUtil);
        oppDataEventQueueHelper.init();
    }

}
